provider Prevent GET
/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/branches/ @utdk/sentry
/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/branches/ Retrieves list of branches for a given owner and repository
Retrieves branch data for a given owner and repository.
- organization_id_or_slug path required
- The ID or slug of the organization the resource belongs to.
- string
- owner path required
- The owner of the repository.
- string
- repository path required
- The name of the repository.
- string
- limit query
- The number of results to return. If not specified, defaults to 20.
- integer
- navigation query
- Whether to get the previous or next page from paginated results. Use `next` for forward pagination after the cursor or `prev` for backward pagination before the cursor. If not specified, defaults to `next`. If no cursor is provided, the cursor is the beginning of the result set.
- string
- cursor query
- The cursor pointing to a specific position in the result set to start the query from. Results after the cursor will be returned if used with `next` or before the cursor if used with `prev` for `navigation`.
- string
- term query
- The term substring to filter name strings by using the `contains` operator.
- string
Try it
Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sentry from '@utdk/sentry';
await sentry.retrievesListOfBranchesForAGivenOwnerAndRepository()